package com.ssy.lingxi.order.model.dto;

import java.io.Serializable;
import java.util.List;

/**
 * 订单支付调用支付接口进行支付时，生成的透传参数，在OrderPaymentCallbackDTO中原样返回
 * @author 万宁
 * @version 2.0.0
 * @date 2021-12-23
 */
public class OrderPaymentAttachDTO implements Serializable {
    private static final long serialVersionUID = 1387940312875657404L;

    //这个无参构造函数不能去掉，否则Json反序列化时会报错
    public OrderPaymentAttachDTO() {
    }

    public OrderPaymentAttachDTO(Integer payChannel, List<Long> orderIds, Integer batchNo, String tradeNo, Long userId) {
        this.payChannel = payChannel;
        this.orderIds = orderIds;
        this.batchNo = batchNo;
        this.tradeNo = tradeNo;
        this.userId = userId;
    }

    /**
     * 支付渠道
     */
    private Integer payChannel;

    /**
     * 订单Id列表
     */
    private List<Long> orderIds;

    /**
     * 支付批次
     */
    private Integer batchNo;

    /**
     * 订单服务生成的支付号
     */
    private String tradeNo;

    /**
     * 支付用户Id，用于在回调时查询用户信息，记录订单流转记录
     */
    private Long userId;

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public List<Long> getOrderIds() {
        return orderIds;
    }

    public void setOrderIds(List<Long> orderIds) {
        this.orderIds = orderIds;
    }

    public Integer getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(Integer batchNo) {
        this.batchNo = batchNo;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
